<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
        <title>上传页面</title>


</head>  
    <body>
    <div    align="center">
        <form action="<%=path%>/upLoadServlet" method="post"  
            enctype="multipart/form-data">  
            <input type="hidden" name="pic" id="pic" value=" ${sessionScope.user.id}"/> 
            <input type="file" name="pic" id="pic" />  
            <input type="submit" value="上传" />  
        </form>  
        </div>  
    </body>  
</html>  